Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit testy #7

Closed
wants to merge 11 commits into from
Closed

Unit testy #7

wants to merge 11 commits into from

Conversation

puyo
Copy link
Contributor

@puyo puyo commented Nov 6, 2010

Okay. Unit tests that use vim server and pass all my criteria. In fact I ran them with :bufdo on my entire repository of feature files at work and I'm happy with the results. Add more example feature files in the spec directory if you like. They could be more fine grained tests but they've sufficed.

Gregory McIntyre added 9 commits August 27, 2010 14:56
Tags on features are indented at 0.

Other tags are indented at the same level as Scenario headers (one
shiftwidth). This matches all the examples I have read.

Comments above a feature are indented at 0.

Comments after a blank line are indented at the same level as Scenario
headers (one shiftwidth).

All other comments preserve the indent of the line before them.
Tags on features are indented at 0.

Other tags are indented at the same level as Scenario headers (one
shiftwidth). This matches all the examples I have read.

Comments above a feature are indented at 0.

Comments after a blank line are indented at the same level as Scenario
headers (one shiftwidth).

All other comments preserve the indent of the line before them.
@tpope
Copy link
Owner

tpope commented Nov 7, 2010

I can't get the specs to run.

No examples were matched. Perhaps {:unless=>#<Proc:0xb74483e4@/home/tpope/.rvm/gems/ruby-1.8.7-p299/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:53>, :if=>#<Proc:0xb7448524@/home/tpope/.rvm/gems/ruby-1.8.7-p299/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:52>} is excluding everything?
Finished in 0.00016 seconds
0 examples, 0 failures

Perhaps I need an older RSpec?

@puyo
Copy link
Contributor Author

puyo commented Nov 8, 2010

I'll look into it.

@puyo
Copy link
Contributor Author

puyo commented Nov 13, 2010

So it was using RSpec 1.3 for some reason. Now it is on the latest stable RSpec.

It requires gvim and pbcopy commands, currently, but perhaps it can be rejigged to eliminate some dependencies. mvim works just as well, if you symlink it or update the spec file.

Running them once sometimes fails but subsequent runs seem more deterministic. It is a Good Enough (TM) set up to test what I wanted to test.

@puyo puyo closed this Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants